/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.race.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.race.entity.CtfSetSubject;
import com.lczyfz.istep.modules.race.entity.RaceRepertory;
import com.lczyfz.istep.modules.race.entity.RaceSubject;
import com.lczyfz.istep.modules.resource.entity.ResourceCtfSet;
import com.lczyfz.istep.modules.resource.entity.ResourceCtfSubject;

import java.util.List;

/**
 * 竞赛题库管理DAO接口
 * @author CY
 * @version 2017-04-24
 */
@MyBatisDao
public interface RaceRepertoryDao extends CrudDao<RaceRepertory>  {

    List<ResourceCtfSet> resourceCtfSets();

    List<CtfSetSubject> findListCtfSetSubject(String ctfSetId);

    ResourceCtfSubject findCtfSubject(String id);

  //查Ctf题目
    List<ResourceCtfSubject> findAddCtfSubject( );

   // 添加竞赛题目
    void insertRaceSubject(RaceSubject raceSubject);

    //删除竞赛题目
    void  deleteCtf(String repertoryId);

    // 查题库相应竞赛题目
    List<RaceSubject> findRaceSubject( );

    RaceRepertory findRepertoryName(String repertoryName);

}